import Layout from '@/layout'

const reportCensus = {
  path: '/reportCensus',
  component: Layout,
  redirect: '/reportCensus/transportTrack',
  name: 'reportCensus',
  meta: {
    title: '报表统计',
    icon: 'el-icon-s-order',
    roles: ['ORG_USER', 'INDIVIDUAL_USER']
  },
  children: [
    {
      path: '/reportCensus/transportTrack',
      component: () => import('@/views/reportCensus/transportTrack/index'),
      name: 'transportTrack',
      meta: { title: '运输跟踪报表', roles: ['ORG_USER', 'INDIVIDUAL_USER'] }
    },
    {
      path: '/reportCensus/transportAbnormal',
      component: () => import('@/views/reportCensus/transportAbnormal/index'),
      name: 'transportAbnormal',
      meta: { title: '运输时长异常报表', roles: ['ORG_USER'] }
    },
    {
      path: '/reportCensus/operationAbnormal',
      component: () => import('@/views/reportCensus/operationAbnormal/index'),
      name: 'operationAbnormal',
      meta: { title: '操作超时报表', roles: ['ORG_USER'] }
    },
    {
      path: '/reportCensus/addressAbnormal',
      component: () => import('@/views/reportCensus/addressAbnormal/index'),
      name: 'addressAbnormal',
      meta: { title: '地址异常报表', roles: ['ORG_USER'] }
    },
    {
      path: '/reportCensus/achievements',
      component: () => import('@/views/reportCensus/achievements/index'),
      name: 'achievements',
      meta: { title: '绩效统计', roles: ['INDIVIDUAL_USER'] }
    }
  ]
}
export default reportCensus
